import os
from django.conf import settings
from django.conf.urls.defaults import *
from django.conf import settings

urlpatterns = patterns('',
    (r'^$', 'chat.views.index.index'),

    (r'^popup/help$','django.views.generic.simple.direct_to_template', {'template': 'chat_popup_help.html'}),
    (r'^popup/login$','django.views.generic.simple.direct_to_template', {'template': 'chat_popup_login.html'}),
    (r'^popup/status$','django.views.generic.simple.direct_to_template', {'template': 'chat_popup_status.html'}),
    
    (r'^action$','chat.views.HandleAction.action'),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^.*pcdm_static/chat/(?P<path>.*)$', 'django.views.static.serve', {'document_root': os.path.join(os.path.dirname(__file__), 'static').replace('\\','/')}),
    )